import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import nodejs from '@dfeidao/atom-web/msg/nodejs';
import render from '@dfeidao/atom-web/render/render';
import p008 from './p008';
import p009 from './p009';
export default async function a004(fd: IFeidaoAiBrowserComponent) {
	// todo
	// const title = '固定资产类型';
	// const name = await nodejs<Array<{ value_no: string }>>('device-management-ygh/zj-000009/s003', { value_title: title });
	// console.log(name[0].value_no);
	const no = fd.data.node.querySelector<HTMLSelectElement>('[data-id="company_no"]');
	const res = await nodejs<{ data: Array<{}> }>('device-management-ygh/zj-000009/s006', { company_no: no.value });
	console.log(res);
	render(fd, res.data[0], p008, 'p008', 'inner');
	render(fd, res.data[0], p009, 'p009', 'inner');
}

